﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using AccessModel;
using AccessDAL;
using System.Collections.Generic;

namespace web
{
    public partial class TestInsert : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void GetAllCheckBox()
        {
            Role role = new Role();
            role.RoleName = this.txtRoleName.Text.Trim().ToString();
            RoleDAL rd = new RoleDAL();
            int id = rd.CreateNewRole(role);

            
        }

        protected void Button1_Click1(object sender, EventArgs e)
        {
            GetAllCheckBox();
        }
    }
}
